package com.lzh.lojcodesandbox.security;

import cn.hutool.core.io.FileUtil;

import java.io.File;
import java.nio.charset.StandardCharsets;
import java.util.List;

/**
 * @Author luzhiheng
 * @Date 2023/8/31 11:46
 */
public class TestSecurityManager {
    public static void main(String[] args) {
        System.setSecurityManager(new MySecurityManager());
        List<String> lines = FileUtil.readLines(new File("D:\\dev_project\\loj-code-sandbox\\src\\main\\java\\com\\lzh\\lojcodesandbox\\unsafe\\MemoryError.java"), StandardCharsets.UTF_8);
//        FileUtil.writeString("aa", "aaa", StandardCharsets.UTF_8);

    }
}
